package study.member.sungil.datatype;


public class ArrayEx2 {
	
	public static void main(String[] args) {
		String genreArr[][] = {{"액션","10"},{"코미디","12"},{"스릴러","11"},{"드라마","13"},{"무협","19"}};
		int totCnt = 0;
		for(int i = 0 ; i<genreArr.length;i++){
			String cnt = genreArr[i][1];
			totCnt += Integer.parseInt(cnt);
		}
		
		System.out.println("전체 :" + totCnt );
		new ArrayEx2().menuDisplay(genreArr);
	}

	public void menuDisplay(String[][] genreArr) {
		for(int i = 0 ; i<genreArr.length;i++){
			String genre = genreArr[i][0];
			String genreCnt = genreArr[i][1];
			System.out.println(genre + ": " + genreCnt);
		}
	}
}
